<div class="row-fluid">
    <a style="border:1px solid #ccc" class="block-heading" data-toggle="collapse">在线商品管理</a>
    <div class="well">
        <div class="btn-toolbar">
            <form>
                <label style="display: inline;">商品名称：</label><input class="input input-medium" type="text" name="goods_title" value="<?=I('get.goods_title')?>" />
                <input type="hidden" value="<?=I('get.res')?>" name="res" />
                <button class="btn btn-info" style="margin:-9px 0 0 15px"><i class="icon-search"></i> 搜索</button>
            </form>
        </div>
        <hr>
        <table class="table">
            <thead>
            <tr>
                <th style="text-align:center">商品ID</th>
                <th style="text-align:center">商品图片</th>
                <th style="text-align:left">商品标题</th>
                <th style="text-align:center">在线价格</th>
                <th style="text-align:center">仓库价格</th>
                <th style="text-align:center">库存</th>
                <th style="text-align:center">销量</th>
                <th style="text-align:center">操作</th>
            </tr>
            </thead>
            <tbody>
            <?php if($getData){foreach($getData AS $key=>$val){ ?>
            <tr>
                <td style="text-align:center;vertical-align:middle"><if condition="$val['goods_id']">{{$val['goods_id']}}<else/>-</if></td>
                <td style="text-align:center;vertical-align:middle"><img src="<?=$val['goods_pic']?>" style="width:100px" /></td>
                <td style="text-align:left;vertical-align:middle"><?=$val['goods_title']?></td>
                <td style="text-align:center;vertical-align:middle"><?=$val['goods_price']?> / <?=$val['goods_attr']?></td>
                <td style="text-align:center;vertical-align:middle"><?=$val['channel_price']?> / <?=$val['goods_attr']?></td>
                <td style="text-align:center;vertical-align:middle">
                    <?php if($val['kcun'] > 10){?>
                        <?=$val['kcun']?> 件
                    <?php }else{?>
                        <span style="color: red"><?=$val['kcun']?> 件</span>
                    <?php }?>
                </td>
                <td style="text-align:center;vertical-align:middle"><?=$val['sales']?> 件</td>
                <td style="text-align:center;vertical-align:middle">
                    <a class="ifrm btn btn-info" href="javascript:void(0)" data-url="/goods/setkcun" data-width="650" data-height="360" style="padding: 0px 4px;" data-title="修改项目" data-params="goods_id/<?=$val['goods_id']?>"><i class="icon-pencil"></i></a>&nbsp;&nbsp;
                </td>
            </tr>
            <?php }}else{?>
            <tr><td style="text-align:center;vertical-align:middle" colspan=8>暂无数据</td></tr>
            <?php }?>
            </tbody>
        </table>
        <span style="float:right;margin-top:-44px"><?=$page?></span>
    </div>
</div>